package com.fuershiye.woman.monitor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fuershiye.woman.monitor.dao.admin.RoleDao;
import com.fuershiye.woman.monitor.model.Role;
import com.fuershiye.woman.monitor.service.RoleService;

@Service("roleService")
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public void save(Role role) {
        roleDao.save(role);
    }

    @Override
    public List<Role> list() {
        return roleDao.list();
    }

    @Override
    public List<Role> listByName(String name) {
        return roleDao.listByName(name);
    }

    @Override
    public Role get(Long id) {
        return roleDao.get(id);
    }

    @Override
    public void delete(Long id) {
        roleDao.delete(id);
    }

}
